package com.tianyuan.service.impl;

import com.tianyuan.dao.TypeMapper;
import com.tianyuan.pojo.Type;
import com.tianyuan.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: eladmin
 * @description:
 * @author: Mr.Wang
 * @create: 2020-10-21 11:04
 **/
@Service
public class TypeServiceImpl implements TypeService {

    @Autowired
    private TypeMapper typeMapper;

    @Override
    public List<Type> queryAll() {

        return typeMapper.selectByExample(null);
    }
}
